<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>测试</title>
<script type='text/javascript' src='/js/vue.js'></script>

</head>
<body>
<div id="app">
	<div v-if="gnadd">任务明细</div>
	<template v-for="gn in gnlist">
      <tr><td>{{ gn.gpid }}</td><td>{{ gn.gname }}</td></tr>
    </template >
</div>
<script type='text/javascript'>
	var app = new Vue({
		el: '#app',
		data: {
			gnadd:true,
			gnlist:[{gpid:1,gname:'ffff'}]
		}
	})
</script>
</body>
</html>
